
/**
 * Write a description of class Korting here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Korting extends Prijs
{
    private double korting;
  
    /**
     * Constructor for objects of class Korting
     */
    public Korting(Product product, double prijs, double korting)
    {
        super(product, prijs);
        //Geeft 30% korting op productprijs
        this.korting = korting;
        super.setPrijs(prijs * ( (100-korting)/100) );
    }
    
    public double bekijkKorting(){
        return korting;
    }

}
